package com.jiezuo.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @description 角色权限模块
 * @author 庞留杰
 * @date 2020/09/02 19:07
 * @version V1.0
 **/
//角色权限模块")
@Data
@TableName(value = "sys_role_permission")
public class RolePermission implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键ID")
    @TableId(type = IdType.AUTO)
    private String id; //ID

    //角色ID")
    private String role_id;

    //权限资源ID")
    private String permission_id;

    @TableField(exist = false)
    //权限资源")
    private List<Permission> menus;

    //数据权限等级")
    private String data_authority_level;

    //数据权限等级设置为6时，用于保存部门信息")
    private String role_depart;

}
